package com.echat.business.book.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 浏览量排行榜 TOP 6
 * </p>
 *
 * @author chentl123
 * @since 2019-06-06
 */
@TableName("echo_rank_read_list")
public class ReadList extends Model<ReadList> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 对应 电子书的 id
     */
    private Integer bookId;
    /**
     * 书籍阅读量（规则暂定：书籍每加载一次，阅读量+1）
     */
    private Integer readMount;
    /**
     * 公告生成时间
     */
    private Date createTime;
    /**
     * 发布人
     */
    private Integer createby;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getReadMount() {
        return readMount;
    }

    public void setReadMount(Integer readMount) {
        this.readMount = readMount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReadList{" +
        ", id=" + id +
        ", bookId=" + bookId +
        ", readMount=" + readMount +
        ", createTime=" + createTime +
        ", createby=" + createby +
        "}";
    }
}
